# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=texinfo
pkgver=7.1.1
pkgrel=0
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
url="https://www.gnu.org/software/texinfo/"
arch="all"
license="GPL-3.0-or-later"
depends="perl"
makedepends="ncurses-dev perl-dev"
install="texinfo.pre-deinstall"
triggers="texinfo.trigger=/usr/share/info"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/texinfo/texinfo-$pkgver.tar.xz"
options="!check" # Test dependencies are not packaged

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
05d605fba810f2939cab16ed5ddb341e22d397370648e6e0271c807fa573267e933c75ed7ae682c3c9cfecb568311a8df7abeb8c0556a94ef7169737d5b9c52a  texinfo-7.1.1.tar.xz
"
